package com.andy.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @packageName: com.andy.service
 * @user: andyliu
 * @date: 2021/9/6 16:29
 * @email 115176513@qq.com
 * @description: TODO
 */
@Component
@FeignClient(value = "nacos-provider")
public interface PruductService {
    @GetMapping("/product/info/{pid}")
    String getProductId(@PathVariable(value="pid") String pid);
}
